function Application() {
	this.loadPage = function(urlValue) {
		$.ajax({
			url : urlValue,
			success : function(data) {
				$('#appBodyContent').html(data);
			},
			statusCode : {
				404 : function() {
					$("#errorIcon").show();
					$('#messageBar').html("The page you are trying to access is not found ");
				},
				403 : function() {
					$("#errorIcon").show();
					$('#messageBar').html("You are not authorized to perform the operation ");
				}
			}
		});
	};
	this.newWindow = function(urlValue) {
		//alert('urlValue : ' + urlValue);
		$.ajax({
			url : urlValue,
			success : function(data) {
				//alert('success');
				$('#appBodyContent').html(data);
			},
			statusCode : {
				404 : function() {
					alert('page not found');
				}
			}
		});
	};
	this.showSuccessMessage = function(message) {
		this.clearMessage();
		$("#successIcon").show();
		$('#messageBar').html(message);
/*		setTimeout(function() {
			$("#messageBar, #successIcon").removeAttr("style").fadeOut();
		}, 3000);*/
	};
	this.showErrorMessage = function(message) {
		this.clearMessage();
		$("#errorIcon").show();
		$('#messageBar').html(message);
	};
	this.showHeading = function(heading) {
		$('#appPageHeading').html(heading);
	}; 
	this.clearMessage = function() {
		$("#successIcon").hide();
		$("#errorIcon").hide();
		$("#warningIcon").hide();
		$("#messageBar").text('');
	}
}